<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>&nbsp;boxphp后台管理系统</title>
<include file="Public/header" />
<script type="text/javascript">
$(function(){
     $('#check').click(function(){
        var inputs = $(this).parents('.list_vmall_man').find('input');
        $(this).attr('checked') ? inputs.attr('checked','checked'):
           inputs.removeAttr('checked');
     });
    $("#delall").click(function(){
        var checkedNum = $("input[name='ids[]']:checked").length;
        if(checkedNum == 0) {
            alert("请至少选择一项！");
            return false;
        }
        if(confirm("确定要删除吗？")) {
            var checkedList = new Array();
            $("input[name='ids[]']:checked").each(function() {
                checkedList.push($(this).val());
            });
            window.location.href = '<{:U('delete')}>?ids='+checkedList+'&operation='+2;
        }
    });
})
</script>
</head>
<body>  
        <div class="list_vmall_man">
        <div class="list_vmall_le">
        	<include file="./Apps/BoxAdmin/View/Public/adminMenu.html" />
            </div>
            <div class="list_vmall_rig">
            	<div class="list_vmall_bort">
                	<table width="100%" border="1" cellspacing="1" cellpadding="1">
                      <tr>
                       <form action="<{:U('index')}>" method="get">
                        <td height="46"><input type="text" name="kw" style="margin-left:5px;" value="<{$_REQUEST['kw']}>" /><input type="submit" value="搜索" style="margin-left:4px; height:26px; color:#333" class="btn" /></td>
                        </form>
                      </tr>
                    </table>
                 
					 <table width="100%" class="v_am_bor_t v_am_td" border="1" cellspacing="1" cellpadding="1">
                          <tr class="v_am_bg_top" height="30">
                            <td align="center" valign="middle" width="50"><input type="checkbox" id="check" /></td>
                            <td height="34" align="center" valign="middle" class="v_am_font">ID</td>
                            <td height="34" align="center" valign="middle" class="v_am_font">操作人</td>
                            <td height="34" align="center" valign="middle" class="v_am_font">权限</td>
                            <td height="34" align="center" valign="middle" class="v_am_font">IP</td>
                            <td height="34" align="center" valign="middle" class="v_am_font">操作描述</td>
                            <td height="34" align="center" valign="middle" class="v_am_font">操作时间</td>
                            <td height="34" align="center" valign="middle" class="v_am_font" style="border-right:0;">操作</td>
                          </tr>
					   <volist name="data" id="vo">
                          <tr>
                            <td align="center" valign="middle"><input type="checkbox" name="ids[]" value="<{$vo.id}>" /></td>
                            <td height="36" align="center" valign="middle"><{$vo.id}></td>
                            <td height="36" align="center" valign="middle"><{$vo.user_name}></td>
                            <td height="36" align="center" valign="middle"><{$vo['status']==0 ? '超级管理员' : '用户'}></td>
                            <td height="36" align="center" valign="middle"><{$vo.ip}></td>
                            <td height="36" align="center" valign="middle"><{$vo.content}></td>
                            <td height="36" align="center" valign="middle"><{$vo.addtime}></td>
                            <td style="border-right:0;"  height="36" align="center" valign="middle">
                                <a onclick="return confirm('确认需要删除些信息吗？');" href="<{:U('delete',array('id'=>$vo['id'],'operation'=>1))}>" class="btn"><i class="v_mall_tubg v_mall_tj3"></i>&nbsp;删除</a>
                                 
                            </td>
                          </tr>
                       </volist>
                    </table>
                    <div>
                      <a class="btn" id="delall">一键删除</a>
                    </div>
                    
                      <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" /> 
                </div>
            </div>
        </div>
 
</body>
</html>
